<?php
namespace Wap\Controller;
class IndexController extends CommonController {
    public function index(){
    	// BANNER
		$banner    = D('Banner')->get_list('web_index');
		$this->banner_img = $banner[0]['images_url'];
        // 创业合同
        $this->entrepreneurial_list = D('Banner')->get_list('web_home_entrepreneurial');
        // 定制合同
        $this->custom_agreement_list = D('CustomAgreement')->get_list(array('category_id' => '99'), '', 1, 6);
        // 专项法律服务
        $this->special_agreement_list = D('CustomAgreement')->get_list(array('category_id' => '100'), '', 1, 4);

        $this->display();
    }
    // 专项法律服务
    public function special_agreement(){
        $this->add_step('专项法律服务');
        $this->special_agreement_list = D('CustomAgreement')->get_list(array('category_id' => '100'), '', 1, 4);

        $this->display();
    }
    // 定制合同
    public function custom_agreement(){
        $this->add_step('定制合同');
        $this->custom_agreement_list = D('CustomAgreement')->get_list(array('category_id' => '99'), '', 1, 6);
        $this->display();
    }
}